import http from '@/config/request'

/**
 * 获取员工异常考勤记录
 * @param {string} employeeNo - 员工编号
 * @param {number} current - 当前页码
 * @param {number} size - 每页条数
 * @returns {Promise} 返回异常记录列表的Promise对象
 */
export const getExceptionList = (employeeNo, current, size) => {
  return http.get(`/employee/exception?employeeNo=${employeeNo}&current=${current}&size=${size}`)
}

/**
 * 提交异常考勤申诉
 * @param {Object} data - 申诉数据
 * @returns {Promise} 返回提交结果的Promise对象
 */
export const submitAppeal = (data) => {
  return http.post('/employee/exception/contact-administrator', data)
}
